Function call errors when calling azure api using "gpt-35-turbo"#610
Closed
skzhang1 wants to merge 1 commit intomicrosoft:mainfrom
Closed
Function call errors when calling azure api using "gpt-35-turbo"#610skzhang1 wants to merge 1 commit intomicrosoft:mainfrom
skzhang1 wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Contributor
|
completion.py is deprecated in #393 |
Codecov Report
@@ Coverage Diff @@
## main #610 +/- ##
==========================================
+ Coverage 34.04% 39.50% +5.45%
==========================================
Files 25 25
Lines 3005 3005
Branches 668 668
==========================================
+ Hits 1023 1187 +164
+ Misses 1906 1722 -184
- Partials 76 96 +20
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Contributor
Author
Yes. Close. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
When making a function call in the Azure API, ensure including ‘gpt-35-turbo-0613’ in the Chat_models parameter. Otherwise will encounter an error with the message:
"openai.NotFoundError: Error code: 404 - {'error': {'message': 'Unrecognized request argument supplied: functions', 'type': 'invalid_request_error', 'param': None, 'code': None}}"Related issue number
#51
Checks